<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="../css/jpetstore.css" type="text/css"/>
    <link rel="stylesheet" href="../css/jquery-ui.css" type="text/css"/>
    <script th:src = "@{/JS/jquery-3.2.1.js}"></script>
    <script th:src = "@{/JS/jquery-ui.js}"></script>
</head>
<body>
    <div th:fragment="newaccountmiddle">
        <h3>Account Information</h3>

        <table id="accountFieldsTab">
            <tr>
                <td>First name:</td>
                <td><input type="text" name="firstName" required="required"/></td>
            </tr>
            <tr>
                <td>Last name:</td>
                <td><input type="text" name="lastName" required="required"/> </td>
            </tr>
            <tr>
                <td>Email:</td>
                <td><input type="email" size="40" name="email" required="required"/> </td>
            </tr>
            <tr>
                <td>Phone:</td>
                <td><input type="text" name="phone" required="required"/> </td>
            </tr>
            <tr>
                <td>Address 1:</td>
                <td><input type="text" size="40" name="address1" required="required"/> </td>
            </tr>
            <tr>
                <td>Address 2:</td>
                <td><input type="text" size="40" name="address2" /> </td>
            </tr>
            <tr>
                <td>provice:</td>
                <td><input type="text" name="city" required="required"/> </td>
            </tr>
            <tr>
                <td>state:</td>
                <td><input type="text" size="4" name="state" required="required"/></td>
            </tr>
            <tr>
                <td>zip:</td>
                <td><input type="text" size="10" name="zip" required="required"/> </td>
            </tr>
            <tr>
                <td>country</td>
                <td><input type="text" size="15" name="country" required="required"/> </td>
            </tr>
        </table>

        <h3>Profile Information</h3>

        <table>
            <tr>
                <td>Language Preference:</td>
                <td>
                    <select name="languagePreference">
                        <option value="ENGLISH">ENGLISH</option>
                        <option selected="selected" value="CHINESE">中文</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td>Favourite Category:</td>
                <td><select name="favouriteCategoryId">
                    <option value="FISH">FISH</option>
                    <option selected="selected" value="DOGS">DOGS</option>
                    <option value="REPTILES">REPTILES</option>
                    <option value="CATS">CATS</option>
                    <option value="BIRDS">BIRDS</option>
                </select></td>
            </tr>
            <tr>
                <td>Enable MyList</td>
                <td><input type="checkbox" name="listOption"  checked="checked" value="1"/></td>
            </tr>
            <tr>
                <td>Enable MyBanner</td>
                <td><input type="checkbox" name="bannerOption"  checked="checked" value="1"/></td>
            </tr>

        </table>
    </div>

    <div th:fragment="editmiddle">
        <h3>Account Information</h3>

        <table id="accountFieldsTab">
            <tr>
                <td>First name:</td>
                <td><input type="text" name="firstName" th:value="${session.loginAccount.firstName}" required="required"/></td>
            </tr>
            <tr>
                <td>Last name:</td>
                <td><input type="text" name="lastName" th:value="${session.loginAccount.lastName}" required="required"/> </td>
            </tr>
            <tr>
                <td>Email:</td>
                <td><input type="email" size="40" name="email" th:value="${session.loginAccount.email}" required="required"/> </td>
            </tr>
            <tr>
                <td>Phone:</td>
                <td><input type="text" name="phone" th:value="${session.loginAccount.phone}" required="required"/> </td>
            </tr>
            <tr>
                <td>Address 1:</td>
                <td><input type="text" size="40" name="address1" th:value="${session.loginAccount.address1}" required="required"/> </td>
            </tr>
            <tr>
                <td>Address 2:</td>
                <td><input type="text" size="40" name="address2" th:value="${session.loginAccount.address2}"/> </td>
            </tr>
            <tr>
                <td>provice:</td>
                <td><input type="text" name="city" th:value="${session.loginAccount.city}" required="required"/> </td>
            </tr>
            <tr>
                <td>state:</td>
                <td><input type="text" size="4" name="state" th:value="${session.loginAccount.state}" required="required"/></td>
            </tr>
            <tr>
                <td>zip:</td>
                <td><input type="text" size="10" name="zip" th:value="${session.loginAccount.zip}" required="required"/> </td>
            </tr>
            <tr>
                <td>country</td>
                <td><input type="text" size="15" name="country" th:value="${session.loginAccount.country}" required="required"/> </td>
            </tr>
        </table>

        <h3>Profile Information</h3>

        <table>
            <tr>
                <td>Language Preference:</td>
                <td>
                    <select name="languagePreference">
                        <option value="ENGLISH">ENGLISH</option>
                        <option selected="selected" value="CHINESE">中文</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td>Favourite Category:</td>
                <td><select name="favouriteCategoryId">
                    <option value="FISH">FISH</option>
                    <option selected="selected" value="DOGS">DOGS</option>
                    <option value="REPTILES">REPTILES</option>
                    <option value="CATS">CATS</option>
                    <option value="BIRDS">BIRDS</option>
                </select></td>
            </tr>
            <tr>
                <td>Enable MyList</td>
                <td><input type="checkbox" name="listOption"  checked="checked" value="1"/></td>
            </tr>
            <tr>
                <td>Enable MyBanner</td>
                <td><input type="checkbox" name="bannerOption"  checked="checked" value="1"/></td>
            </tr>

        </table>
    </div>
</body>
</html>